package com.test.demo.main.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.test.demo.R
import com.test.demo.ext.loadUrl
import com.test.demo.main.bean.MediumBean
import com.test.demo.utils.glide.widget.SimpleDraweeView

/**
 * 文件名:
 * 功能描述:
 */
class TopicChildAdapter : BaseQuickAdapter<MediumBean, BaseViewHolder>(R.layout.child_feed_image) {

    override fun convert(holder: BaseViewHolder, item: MediumBean) {
        val image = holder.getView<SimpleDraweeView>(R.id.iv_image)
        image.loadUrl(item.resId!!)
    }
}